import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: () =>
            import ('../views/App.vue'),
        children: [
            {
                path: '',
                name: '',
                component: () =>
                    import ('../views/shop/shopList.vue')
            },
            {
                path: '/positionList',
                name: 'positionList',
                component: () =>
                    import ('../views/position/positionList.vue')
            },
            {
                path: '/userList',
                name: 'userList',
                component: () =>
                    import ('../views/user/userList.vue')
            },
            {
                path: '/shopList',
                name: 'shopList',
                component: () =>
                    import ('../views/shop/shopList.vue')
            },
            {
                path: '/brandList',
                name: 'brandList',
                component: () =>
                    import ('../views/brand/brandList.vue')
            },
            {
                path: '/factoryList',
                name: 'factoryList',
                component: () =>
                    import ('../views/factory/factoryList.vue')
            },
            {
                path: '/categorylist',
                name: 'categorylist',
                component: () =>
                    import ('../views/category/categorylist.vue')
            },
            {
                path: '/goodsList',
                name: 'goodsList',
                component: () =>
                    import ('../views/goods/goodsList.vue')
            },
            {
                path: '/subjectList',
                name: 'subjectList',
                component: () =>
                    import ('../views/subject/subjectList.vue')
            },
            {
                path: '/vipgradeList',
                name: 'vipgradeList',
                component: () =>
                    import ('../views/vipgRade/vipgradeList.vue')
            },
            {
                path: '/guestCategoryList',
                name: 'guestCategoryList',
                component: () =>
                    import ('../views/basis/guestCategoryList.vue')
            },
            {
                path: '/guestThreephase',
                name: 'guestThreephase',
                component: () =>
                    import ('../views/basis/guestThreephase.vue')
            },
            {
                path: '/diagnosisList',
                name: 'diagnosisList',
                component: () =>
                    import ('../views/diagnosis/diagnosisList.vue')
            },
            {
                path: '/groupAdminlist',
                name: 'groupAdminlist',
                component: () =>
                    import ('../views/group/groupAdminlist.vue')
            },
            {
                path: '/stockList',
                name: 'stockList',
                component: () =>
                    import ('../views/stock/stockList.vue')
            },
            {
                path: '/stockGoodslist',
                name: 'stockGoodslist',
                component: () =>
                    import ('../views/stock/stockGoodslist.vue')
            },
            {
                path: '/orderList',
                name: 'orderList',
                component: () =>
                    import ('../views/order/orderList.vue')
            },
            {
                path: '/permissionLevel/:type',
                name: 'permissionLevel',
                component: () =>
                    import ('../views/rule/permissionLevel.vue')
            }
        ]
    },
    {
        path: '/addUser',
        name: 'addUser',
        component: () =>
            import ('../views/user/addUser.vue')
    },
    {
        path: '/addPosition',
        name: 'addPosition',
        component: () =>
            import ('../views/user/addPosition.vue')
    },
    {
        path: '/adminChangepas',
        name: 'adminChangepas',
        component: () =>
            import ('../views/admin/adminChangepas.vue')
    },
    {
        path: '/adminEdit',
        name: 'adminEdit',
        component: () =>
            import ('../views/admin/adminEdit.vue')
    },
    {
        path: '/positionAdd',
        name: 'positionAdd',
        component: () =>
            import ('../views/position/positionAdd.vue')
    },
    {
        path: '/selectDepartment',
        name: 'selectDepartment',
        component: () =>
            import ('../views/user/selectDepartment.vue')
    },
    {
        path: '/shopadminEdit',
        name: 'shopadminEdit',
        component: () =>
            import ('../views/shop/adminList.vue')
    },
    {
        path: '/addShop',
        name: 'addShop',
        component: () =>
            import ('../views/shop/addShop.vue')
    },
    {
        path: '/addShopAdmin',
        name: 'addShopAdmin',
        component: () =>
            import ('../views/shop/addAdmin.vue')
    },
    {
        path: '/addBrand',
        name: 'addBrand',
        component: () =>
            import ('../views/brand/addBrand.vue')
    },
    {
        path: '/addFactory',
        name: 'addFactory',
        component: () =>
            import ('../views/factory/addFactory.vue')
    },
    {
        path: '/editGoods',
        name: 'editGoods',
        component: () =>
            import ('../views/goods/editGoods.vue')
    },
    {
        path: '/editSubject',
        name: 'editSubject',
        component: () =>
            import ('../views/subject/editSubject.vue')
    },
    {
        path: '/popupGoodsList',
        name: 'popupGoodsList',
        component: () =>
            import ('../views/popup/goodsList.vue')
    },
    {
        path: '/selectPopupBrand',
        name: 'selectPopupBrand',
        component: () =>
            import ('../views/popup/selectbrand.vue')
    },
    {
        path: '/selectPopupCategory',
        name: 'selectPopupCategory',
        component: () =>
            import ('../views/popup/selectcategory.vue')
    },
    {
        path: '/selectPopupFactory',
        name: 'selectPopupFactory',
        component: () =>
            import ('../views/popup/selectfactory.vue')
    },
    {
        path: '/addVipgrade',
        name: 'addVipgrade',
        component: () =>
            import ('../views/vipgRade/addVipgrade.vue')
    },
    {
        path: '/guestcategoryEdit',
        name: 'guestcategoryEdit',
        component: () =>
            import ('../views/basis/guestcategoryEdit.vue')
    },
    {
        path: '/addDiagnose',
        name: 'addDiagnose',
        component: () =>
            import ('../views/diagnosis/addDiagnose.vue')
    },
    {
        path: '/addDiagnosisOption',
        name: 'addDiagnosisOption',
        component: () =>
            import ('../views/diagnosis/addDiagnosisOption.vue')
    },
    {
        path: '/groupSelectgrade',
        name: 'groupSelectgrade',
        component: () =>
            import ('../views/group/groupSelectgrade.vue')
    },
    {
        path: '/groupAdd',
        name: 'groupAdd',
        component: () =>
            import ('../views/group/groupAdd.vue')
    },
    {
        path: '/addStockorder',
        name: 'addStockorder',
        component: () =>
            import ('../views/stock/addStockorder.vue')
    },
    {
        path: '/stockOrderinfo',
        name: 'stockOrderinfo',
        component: () =>
            import ('../views/stock/stockOrderinfo.vue')
    },
    {
        path: '/editOrder',
        name: 'editOrder',
        component: () =>
            import ('../views/order/editOrder.vue')
    },
    {
        path: '/editRule',
        name: 'editRule',
        component: () =>
            import ('../views/rule/editRule.vue')
    },
    {
        path: '/ruleFloorpermission',
        name: 'ruleFloorpermission',
        component: () =>
            import ('../views/rule/ruleFloorpermission.vue')
    },
    {
        path: '/addotherPermission',
        name: 'addotherPermission',
        component: () =>
            import ('../views/rule/addotherPermission.vue')
    },
    {
        path: '/editGrade',
        name: 'editGrade',
        component: () =>
            import ('../views/rule/editGrade.vue')
    }]
})